
	console.log('start')










	//DOWNLOAD 下载 轮播
	function DOCUMENTSListN(){
		var MySweiper = new Swiper ('.DOCUMENTSListN', {
			    // direction: 'vertical',
			    // loop: true,
			    slidesPerView : 3.78,
			    // 如果需要前进后退按钮
			    nextButton: '.nextDOCUM',
			    prevButton: '.prevDOCUM'
			    


			    
			})  

		MySweiper.lockSwipes();

	}
	// DOCUMENTSListN();
	//DOWNLOAD 下载 轮播 end



	//Links to Subsidiaries 合作伙伴 轮播
	function ButLogoListN(){
		var MySweiper = new Swiper ('.ButLogoListN', {
			    // direction: 'vertical',
			    loop: true,
			    slidesPerView : 4.5,
			    // 如果需要前进后退按钮
			    nextButton: '.nextButLogo',
			    prevButton: '.prevButLogo'
			    


			    
			})  

	}
	// ButLogoListN();


	//Links to Subsidiaries 合作伙伴 轮播 end







 //KEY FIGURES 数据 缓冲效果
 function FIGURES(data){
 	if ($('section.FIGURES').length>0) {

 		var options = {
 			 useEasing : true,
 			  useGrouping : true,
 			  separator : '',
 			  decimal : '.',
 			  prefix : '',
 			  suffix : ''

 		};

 		$('section.FIGURES').waypoint(function(){
 			var numAnim = new CountUp("counting-"+data[0].figure_id, 0, intedata(data[0].value,data[0].type), IfTyle(data[0]), 3.5, options);
 			numAnim.start();
 			var numAnim = new CountUp("counting-"+data[1].figure_id, 0, intedata(data[1].value,data[1].type), IfTyle(data[1]), 3.5, options);
 			numAnim.start();
 			var numAnim = new CountUp("counting-"+data[2].figure_id, 0, intedata(data[2].value,data[2].type), IfTyle(data[2]), 3.5, options);
 			numAnim.start();
 			var numAnim = new CountUp("counting-"+data[3].figure_id, 0, intedata(data[3].value,data[3].type), IfTyle(data[3]), 3.5, options);
 			numAnim.start();
 			var numAnim = new CountUp("counting-"+data[4].figure_id, 0, intedata(data[4].value,data[4].type), IfTyle(data[4]), 3.5, options);
 			numAnim.start();
 		}, { offset: '100%' });
 	};

 	function IfTyle2(type){
 		if (type== "fload") {
 			return 2;
 		}else if(type == "percent"){
			return 2;
		}else{
 			return 0;
 		}
 	}
	function IfTyle(data){
 		if (data.type== "fload") {
 			return 2;
 		}else if(data.type == "percent"){
			var wz=0;
			var index=data.value.indexOf('.');
			if(index > 0){
				wz = data.value.length-index-1;
			}
			return wz;
		}else{
 			return 0;
 		}
 	}
 	function intedata(int,type){
 		if (type == "fload") {
 			return parseFloat(int);
 		}else if(type == "percent"){
			return parseFloat(int);
		}else{
 			return parseInt(int);
 		}
 	}
 }
 	
// FIGURES()

 //KEY FIGURES 数据 缓冲效果 end



// window 滚动事件
// window 滚动事件
function windowsrloo(){
	var  win =  $(window);
	var  winH =  win[0].innerHeight;
	var  Links =  $('.Links');
	var  top = Links.offset().top;

	win.scroll(function(){
		// console.log(win[0].scrollY);
		

		if (win[0].scrollY >(top - winH) && win[0].scrollY < (top + 440)) {
			var yto = ((top - winH) - win[0].scrollY)/2;
			Links.css({'background-position':'0px '+ (yto)+'px'})
		}
	})
}
windowsrloo();
// window 滚动事件 end




//video 控制
function VideoSet(){

	var Vcon = $('#videoC');
	var play = Vcon.find('.play');
	var Video = $('#indVideo')[0];

/*	play.click(function(){
		if(Video.paused){ //如果当前是暂停状态
            play.addClass('active');
            Video.play();//播放
            return;
        }else{//当前是播放状态
            play.removeClass('active');
            Video.pause(); //暂停
        }
	})*/

	var alltime = null;
	
	// console.log(audio.duration);
	Video.addEventListener('canplay',function(){
		console.log('canplay');
		alltime = this.duration; //视频的长度
		Video.volume = 1.0;  //音量
		console.log(alltime);

	},false)


	Video.addEventListener('pause',function(){
		console.log('stop')
		play.removeClass('active');
	},false)

	Video.addEventListener('play',function(){
		console.log('play')
		this.loop = true ;
		play.addClass('active');
	},false)

	Video.addEventListener('volumechange',function(){
		
	},false)
	
	Video.addEventListener('timeupdate',function(){
		console.log('timeupdate');
		console.log(this.controller);
		var currentTime = this.currentTime;
		// span.width(currentTime/alltime*100 +'%');
		// ConI.css({left: currentTime/alltime*100 +'%'})


	},false)

	play.click(function(){
		if (Video.paused) {
			Video.play();
		}else{
			Video.pause();
		}
	})

}

VideoSet()
//video 控制end



